<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<!-- justmainandleft -->

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="DESCRIPTION" content="">
<meta name="ROBOTS" content="INDEX,FOLLOW">
<meta name="resource-type" content="document">
<meta http-equiv="expires" content="0">
<meta name="author" content="AVR Freaks">
<meta name="copyright" content="Copyright (c) 2004 by AVR Freaks">
<meta name="revisit-after" content="1 days">
<meta name="distribution" content="Global">
<meta name="generator" content="PostNuke 0.7.6.2 - http://postnuke.com">
<meta name="rating" content="General">
<meta name="KEYWORDS" content="">

<title>View topic - Compile LUFA Bootloader atmega32u2 error :: AVR Freaks</title>

<script src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/c_002.js" async="" type="text/javascript"></script><script src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/c.js" async="" type="text/javascript"></script><script type="text/javascript" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/freaks.js"></script>
<script type="text/javascript" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/behaviour.js"></script>
<script type="text/javascript" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/behaviours.js"></script>
<script type="text/javascript" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/prototype.js"></script>
<script type="text/javascript" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/addBuddy.js"></script>
<script type="text/javascript" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/url.js"></script>

<script src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1473358-1";
urchinTracker();
</script>

<link rel="stylesheet" href="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/style.css" media="screen, projection" type="text/css">
<link rel="stylesheet" href="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/print.css" media="print" type="text/css">
<link rel="icon" href="http://www.avrfreaks.net/themes/FreakCyber/images/favicon.png" type="image/png">
<link rel="alternate" type="application/rss+xml" title="Latest Forum Posts" href="http://www.avrfreaks.net/forumrss.php">
<link rel="alternate" type="application/rss+xml" title="Latest Tools" href="http://www.avrfreaks.net/index.php?module=FreaksFeed&amp;func=view&amp;item_module=FreaksTools&amp;item_type=tool&amp;item_id=*">
<link rel="alternate" type="application/rss+xml" title="Latest Devices" href="http://www.avrfreaks.net/index.php?module=FreaksFeed&amp;func=view&amp;item_module=FreaksDevices&amp;item_type=device&amp;item_id=*">
<link rel="alternate" type="application/rss+xml" title="Latest Projects" href="http://www.avrfreaks.net/index.php?module=FreaksFeed&amp;func=view&amp;item_module=FreaksAcademy&amp;item_type=project&amp;item_id=*">
<link rel="alternate" type="application/rss+xml" title="Latest News" href="http://www.avrfreaks.net/backend.php">

<link rel="StyleSheet" href="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/FreakCyber.css" type="text/css">




<style type="text/css">body{background: url('/themes/FreakCyber/images/fc_pattern_forum.gif');}</style>
<!--[if !IE]>-->
<style type="text/css">
#fc_bg_right {background: url('/themes/FreakCyber/images/fc_pattern_forum_br.png');background-repeat: no-repeat;background-position: left 9px;}
#fc_bg_left {background: url('/themes/FreakCyber/images/fc_pattern_forum_bl.png');background-repeat: no-repeat;background-position: right 9px;}
</style>
<!--<![endif]-->


<script type="text/javascript">var installPartner = "dlc"; var installID = "{45BCD8BE-69F7-4FDC-9C0E-679C0E428D1C}";var installDate = "2013-1-20";var installerVersion = "1.0.0";var installedProduct = "selectionlinks";</script><script src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/run.js" type="text/javascript"></script></head>

<body><div style="position: absolute;"><object id="_GPL_swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1" height="1"><param name="movie" value="http://cdncache3-a.akamaihd.net/items/it/swf/f.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always"><param name="flashVars" value="keywordsURL=http%3A//i.trkjmp.com/kwd%3Fc%3DOjo6d3d3LmF2cmZyZWFrcy5uZXQ6ei0xMDMyLTYyODYy%26cb%3D_GPL.items.a652c.displayKeywords&amp;keywords=new%20user%7Cauthor%7Cmessage%7Cusbuser%7Cposted%7Cmay%7C2010%7Cjoined%7Cposts%7Cnot%20sure%20if%20this%7Cgcc%20related%20or%20lufa%20related%7Cbut%20anyone%20who%20can%20share%20how%20to%20solve%20this%7Ctried%20to%20compile%20lufa%20dfu%20bootloader%7Clufa%20version%7Ctried%20in%20windows%20vista%7Cwith%20winavr-gcc%7Cmy%20setup%7Cmcu%7Catmega32u2%7Ckeep%20this%20the%20same%7Chave%20this%20error%20quoted%20below%7Ccompiling%7Cbootloaderdfu%7Cavr-gcc%7Cice%7Cescriptors%7Celds%7Cin%20function%7Csetuphardware%7C127%7Cwarning%7Cimplicit%20declaration%20of%20function%7Cundeclared%7Cfirst%20use%20in%20this%20function%7Ceach%20undeclared%20identifier%7Creported%20only%20once%7Cfor%20each%20function%7Cappears%20in%7Cmake%7Ctried%20with%20atmega32u4%20and%7Ccompile%20successfully%7Cso%20any%20help%20about%20compiling%20on%20atmega32u2%7Cany%20setting%7Cmiss%20to%20setup%20correctly%7Cthank%20you%20in%20advance%20anyone%20who%20encounter%20this%20error%7Cclawson%7Cjul%7C2005%7Clocation%7Cusing%20avr-gcc%20in%7Cfinchingfield%7Cessex%7Cengland%7Ccheck%20your%20winavr%20installation%20and%20ensure%20that%7Ccontains%7Ccode%7Ctypedef%20enum%7Cdefined%7Cwhere%20the%7Cdefinitions%20should%20be%20coming%20from%7Ccliff%7Cthank%20you%20for%20pointing%20to%20that%20part%7Cthis%20lines%20were%20there%7Cdid%20notice%20on%20other%20part%20of%20the%20code%20that%20there%7Cno%20define%20entry%20for%20atmega32u2%7Cadded%7Cand%20now%7Ccan%20compile%20sucessfully%7Cone%20thing%20though%20that%20the%20compiled%20hex%20file%7C10kb%7Cwhen%20loaded%20to%20programmer%7Clike%20flip%20says%7Cout%20of%7Cand%20when%20loaded%20to%20extreme%20burner%7Cbe%20loaded%7Ctoo%20large%20for%20the%20selected%7Cany%20idea%20how%20to%20reduce%20the%20compiled%20hex%7Cor%20any%20workaround%7Canyway%7Cwill%20be%20posting%20this%20as%20separate%20topic%7Csince%20the%20first%20problem%20has%20been%20resolved%7Cand%20if%20you%20can%20help%20facilitate%20to%20add%20this%20change%7Cthe%20atmega32u2%20prescaler%20error%7Cfor%20the%20next%20release%20of%20win-avr%7Cknow%20how%20to%7Cor%20contact%20the%20win-avr%20groups%7Cthanks%20for%20your%20help%7Cwendel"><!--[if !IE]> <--> <object id="_GPL_swf" data="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/f.swf" type="application/x-shockwave-flash" width="1" height="1"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always"><param name="flashVars" value="keywordsURL=http%3A//i.trkjmp.com/kwd%3Fc%3DOjo6d3d3LmF2cmZyZWFrcy5uZXQ6ei0xMDMyLTYyODYy%26cb%3D_GPL.items.a652c.displayKeywords&amp;keywords=new%20user%7Cauthor%7Cmessage%7Cusbuser%7Cposted%7Cmay%7C2010%7Cjoined%7Cposts%7Cnot%20sure%20if%20this%7Cgcc%20related%20or%20lufa%20related%7Cbut%20anyone%20who%20can%20share%20how%20to%20solve%20this%7Ctried%20to%20compile%20lufa%20dfu%20bootloader%7Clufa%20version%7Ctried%20in%20windows%20vista%7Cwith%20winavr-gcc%7Cmy%20setup%7Cmcu%7Catmega32u2%7Ckeep%20this%20the%20same%7Chave%20this%20error%20quoted%20below%7Ccompiling%7Cbootloaderdfu%7Cavr-gcc%7Cice%7Cescriptors%7Celds%7Cin%20function%7Csetuphardware%7C127%7Cwarning%7Cimplicit%20declaration%20of%20function%7Cundeclared%7Cfirst%20use%20in%20this%20function%7Ceach%20undeclared%20identifier%7Creported%20only%20once%7Cfor%20each%20function%7Cappears%20in%7Cmake%7Ctried%20with%20atmega32u4%20and%7Ccompile%20successfully%7Cso%20any%20help%20about%20compiling%20on%20atmega32u2%7Cany%20setting%7Cmiss%20to%20setup%20correctly%7Cthank%20you%20in%20advance%20anyone%20who%20encounter%20this%20error%7Cclawson%7Cjul%7C2005%7Clocation%7Cusing%20avr-gcc%20in%7Cfinchingfield%7Cessex%7Cengland%7Ccheck%20your%20winavr%20installation%20and%20ensure%20that%7Ccontains%7Ccode%7Ctypedef%20enum%7Cdefined%7Cwhere%20the%7Cdefinitions%20should%20be%20coming%20from%7Ccliff%7Cthank%20you%20for%20pointing%20to%20that%20part%7Cthis%20lines%20were%20there%7Cdid%20notice%20on%20other%20part%20of%20the%20code%20that%20there%7Cno%20define%20entry%20for%20atmega32u2%7Cadded%7Cand%20now%7Ccan%20compile%20sucessfully%7Cone%20thing%20though%20that%20the%20compiled%20hex%20file%7C10kb%7Cwhen%20loaded%20to%20programmer%7Clike%20flip%20says%7Cout%20of%7Cand%20when%20loaded%20to%20extreme%20burner%7Cbe%20loaded%7Ctoo%20large%20for%20the%20selected%7Cany%20idea%20how%20to%20reduce%20the%20compiled%20hex%7Cor%20any%20workaround%7Canyway%7Cwill%20be%20posting%20this%20as%20separate%20topic%7Csince%20the%20first%20problem%20has%20been%20resolved%7Cand%20if%20you%20can%20help%20facilitate%20to%20add%20this%20change%7Cthe%20atmega32u2%20prescaler%20error%7Cfor%20the%20next%20release%20of%20win-avr%7Cknow%20how%20to%7Cor%20contact%20the%20win-avr%20groups%7Cthanks%20for%20your%20help%7Cwendel"></object> <!----> <!--[endif]----> </object></div><div id="_GPL_e6a00_parent_div" style="position: absolute; top: 0px; left: 0px; width: 1px; height: 1px; z-index: 2147483647;"><object data="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/storage.swf" id="_GPL_e6a00_swf" type="application/x-shockwave-flash" width="1" height="1"><param value="transparent" name="wmode"><param value="always" name="allowscriptaccess"><param value="logfn=_GPL.items.e6a00.log&amp;onload=_GPL.items.e6a00.onload&amp;onerror=_GPL.items.e6a00.onerror&amp;LSOName=gpl" name="flashvars"></object></div>
<table id="wrap2" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr style="height:0px;">
    <td class="tablewidth"></td>
    <td></td>
    <td class="tablewidth"></td>
  </tr>
  <tr>
    <td id="fc_bg_left">&nbsp;</td>
    <td id="main" align="left" valign="top">
      <table style="height:100%;width:100%" border="0" cellpadding="0" cellspacing="0">
        <tbody><tr>
          <td valign="top">
            <div id="header">
              <h1 id="mainheader"><a href="http://www.avrfreaks.net/"><span>AVRFreaks.net</span></a></h1>
              <div id="topbanner">
<a href="http://www.avrfreaks.net/openx/www/delivery/ck.php?n=a49bcba6" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/avw_002.gif" alt="" border="0"></a>
              </div>
              <div id="mainmenu">
                <ul>
                  <li><a class="forum" href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=index"><span>Forum</span></a></li>
                  <li><a class="devices" href="http://www.avrfreaks.net/index.php?module=FreaksDevices"><span>Devices</span></a></li>
                  <li><a class="tools" href="http://www.avrfreaks.net/index.php?module=FreaksTools"><span>Tools</span></a></li>
                  <li><a class="projects" href="http://www.avrfreaks.net/index.php?module=FreaksAcademy&amp;func=viewProjects"><span>Projects</span></a></li>
                  <li><a class="vendors" href="http://www.avrfreaks.net/index.php?module=FreaksVendors"><span>Vendors</span></a></li>
                  <li><a class="articles" href="http://www.avrfreaks.net/index.php?module=FreaksArticles"><span>Articles</span></a></li>
                  <li><a class="wiki" href="http://wiki.avrfreaks.net/"><span>Wiki</span></a></li>
                </ul>
              </div>
            </div>
            <div id="theme_header">
              <img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/fc_forum.gif" usemap="#themeheader" alt="Forum Menu" width="871" border="0" height="44">
<map name="themeheader">
  <area shape="poly" coords="0,0,83,0,83,23,0,23" title="Forum" href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=index">
  <area shape="poly" coords="231,42, 213,28, 306,28, 324,42" title="Search Forum" href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=search">
</map>

            </div>
            <table id="wrap" cellpadding="0" cellspacing="0">
              <tbody><tr>
                <td id="leftcolumn" valign="top">
                  
<div class="bordertop"></div>
<div class="borderbottom"></div><form action="user.php" method="post"><div>
<label for="uname">User name</label><br>
<input name="uname" id="uname" size="14" maxlength="25" tabindex="0" value="User name" onblur="if(this.value=='')this.value='User name';" onfocus="if(this.value=='User name')this.value='';" type="text"><br><label for="pass">Password</label><br>
<input name="pass" id="pass" size="14" maxlength="20" tabindex="0" type="password"><br>
<input value="1" name="rememberme" id="rememberme" tabindex="0" type="checkbox">
&nbsp;<label for="rememberme">Remember me</label>
<br>
<input name="module" value="User" type="hidden">
<input name="op" value="login" type="hidden">
<input name="url" value="/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830" type="hidden">
<input title="Cookies must be enabled past this point." value="Log-in" type="submit"><br>
<br><a href="http://www.avrfreaks.net/user.php?op=lostpassscreen&amp;module=LostPassword">Log in Problems?</a><br>New User? <a href="http://www.avrfreaks.net/user.php?op=register&amp;module=NewUser">Sign Up!</a></div></form>

<div class="bordertop"></div>
<div class="borderbottom"></div><div id="lc_search"><table cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td><h3>Search</h3></td>
    <td class="adv_search"><a href="http://www.avrfreaks.net/index.php?name=Search" title="Advanced search"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/fc_search.gif" alt="Advanced search"></a></td>
  </tr>
</tbody></table>
<form method="post" action="index.php">
<table cellpadding="0" cellspacing="0">
<tbody><tr>
<td><input class="search" name="q" size="14" type="text"></td>
<td id="search_submit"><input src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/fc_search_submit.gif" value="Search" type="image"></td>
</tr>
</tbody></table>
<input name="name" value="Search" type="hidden">
<input name="action" value="search" type="hidden">
<input name="overview" value="1" type="hidden">
<input name="active_devices" value="1" type="hidden">
<input name="active_tools" value="1" type="hidden">
<input name="active_stories" value="1" type="hidden">
<input name="stories_topics" value="" type="hidden">
<input name="stories_author" value="" type="hidden">
<input name="active_vendors" value="1" type="hidden">
<input name="country" value="0" type="hidden">
<input name="active_pnphpbb2" value="1" type="hidden">
<input name="active_projects" value="1" type="hidden">
<input name="active_articles" value="1" type="hidden">
</form></div>
<div class="bordertop"></div>
<div class="borderbottom"></div><div style="width:100%;text-align: center;margin-bottom: 10px"> <a href="http://www.avrfreaks.net/openx/www/delivery/ck.php?n=a70cb778&amp;cb=INSERT_RANDOM_NUMBER_HERE" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/avw_004.gif" alt="" border="0"></a> </div> <div style="width:100%;text-align: center;margin-bottom: 10px"> <a href="http://www.avrfreaks.net/openx/www/delivery/ck.php?n=a9b9d4c5&amp;cb=INSERT_RANDOM_NUMBER_HERE" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/avw_007.gif" alt="" border="0"></a> </div> <div style="width:100%;text-align: center;margin-bottom: 10px"> <a href="http://www.avrfreaks.net/openx/www/delivery/ck.php?n=afc1c120&amp;cb=INSERT_RANDOM_NUMBER_HERE" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/avw_005.gif" alt="" border="0"></a> </div> <div style="width:100%;text-align: center;margin-bottom: 10px"> <a href="http://www.avrfreaks.net/openx/www/delivery/ck.php?n=a47cf5fd&amp;cb=INSERT_RANDOM_NUMBER_HERE" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/avw_003.gif" alt="" border="0"></a> </div> <div style="width:100%;text-align: center;margin-bottom: 10px"> <a href="http://www.avrfreaks.net/openx/www/delivery/ck.php?n=a9e87036&amp;cb=INSERT_RANDOM_NUMBER_HERE" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/avw_006.gif" alt="" border="0"></a></div> <div style="width:100%;text-align: center;margin-bottom: 0px"> <a href="http://www.avrfreaks.net/openx/www/delivery/ck.php?n=afe29300&amp;cb=INSERT_RANDOM_NUMBER_HERE" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/avw.gif" alt="" border="0"></a></div> 
                </td>
                <td id="maincolumn" valign="top"><div class="content_box">
	<div class="content">
<a name="top" id="top"></a>
<table class="bodyline" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td align="center" valign="top">
            <table class="topbkg" width="100%" border="0" cellpadding="1" cellspacing="2">
        <tbody><tr>
          <td align="center" valign="top"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=index"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/logo.gif" alt="AVR Freaks Forum Index" title="AVR Freaks Forum Index" border="0"></a></td>
        </tr>
      </tbody></table>
            <table class="navbar" width="100%" border="0" cellpadding="2" cellspacing="1">
        <tbody><tr align="center">
          <td>
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=faq"><img class="inlineimg" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_mini_faq.gif" alt="FAQ" title="FAQ" border="0"> FAQ</a>&nbsp; •&nbsp;
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=search"><img class="inlineimg" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_mini_search.gif" alt="Search" title="Search" border="0"> Search</a>&nbsp; •&nbsp;
                                    <a href="http://www.avrfreaks.net/user.php"><img class="inlineimg" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_mini_register.gif" alt="Register" title="Register" border="0"> Register</a>&nbsp; •&nbsp;
                                    <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;folder=inbox"><img class="inlineimg" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_mini_message.gif" alt="Log in to check your private messages" title="Log in to check your private messages" border="0"> Log in to check your private messages</a>
          </td>
        </tr>
        <tr align="center">
          <td>
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=login"><img class="inlineimg" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_mini_login.gif" alt="Log in" title="Log in" border="0"> Log in</a>
                                    &nbsp;• &nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=index&amp;minmax=1"><img class="inlineimg" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_mini_max.gif" alt="Maximize" title="Maximize" border="0"> Maximize</a>
                        &nbsp;• &nbsp;<a href="http://www.avrfreaks.net/forumrss.php"><img class="inlineimg" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rss_tracker.gif" alt="RSS-feeds" title="RSS-feeds" border="0"> RSS</a>
                      </td>
        </tr>
      </tbody></table>
	      <br clear="all">
      
			<table width="100%" border="0" cellpadding="5" cellspacing="0">
				<tbody><tr>
					<td>
                    
<table width="100%" border="0" cellpadding="2" cellspacing="0">
  <tbody><tr>
    <td class="nav" align="left" valign="top">
      <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;start=0&amp;postdays=0&amp;postorder=asc&amp;highlight="><span class="maintitle">Compile LUFA Bootloader atmega32u2 error</span></a>
      <br><b>1</b>, <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;postdays=0&amp;postorder=asc&amp;start=20">2</a>&nbsp;&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;postdays=0&amp;postorder=asc&amp;start=20">Next</a>&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;start=all&amp;postdays=0&amp;postorder=asc" style="text-decoration:none;">All</a>    </td>
    <!-- <td class="gensmall" align="right" valign="bottom"><a href="index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;view=next">View next topic</a><br />
<a href="index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;view=previous">View previous topic</a><br />
<a href="index.php?name=PNphpBB2&amp;file=printview&amp;t=93830&amp;start=0" target="_blank" title="Printable version">Printable version</a><br />
<br />
<strong></strong><br />
</td> -->
  </tr>
</tbody></table>

<table width="100%" border="0" cellpadding="2" cellspacing="2">
  <tbody><tr>
    <td class="nav" width="100%" valign="top">
      <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=index" class="nav">AVR Freaks Forum Index</a>&nbsp;»&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=index&amp;c=2" class="nav">AVR (8-bit) Technical Forums</a>&nbsp;»&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewforum&amp;f=2" class="nav">AVR GCC forum</a>
    </td>
    <td align="right"></td>
  </tr>
  <tr>
    <td align="left" nowrap="nowrap">
      <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=newtopic&amp;f=2"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/post.gif" alt="Post new topic" title="Post new topic" width="82" border="0" height="25"></a>&nbsp;&nbsp;&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=reply&amp;t=93830"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/reply.gif" alt="Reply to topic" title="Reply to topic" width="82" border="0" height="25"></a>
    </td>
    <td nowrap="nowrap">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;view=previous"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/topic_previous.gif" alt="View previous topic" title="View previous topic" width="15" border="0" height="25"></a></td> 
<td></td>
<td><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=printview&amp;t=93830&amp;start=0" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/topic_print.gif" alt="Printable version" title="Printable version" width="24" border="0" height="25"></a></td>
<td></td>
<td><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;folder=inbox"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/pm_no_new.gif" alt="Log in to check your private messages" title="Log in to check your private messages" width="24" border="0" height="25"></a></td>
<td><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;view=next"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/topic_next.gif" alt="View next topic" title="View next topic" width="14" border="0" height="25"></a></td>
</tr>
</tbody></table>
    </td> 
  </tr>
</tbody></table>
<table class="forumline" width="100%" border="0" cellspacing="1">
    <tbody><tr>
    <th class="th" width="20%">Author</th>
    <th class="th" width="80%">Message</th>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705428"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705428#705428"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 05:40 AM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">Not sure if this is gcc related or lufa related, but anyone who can share how to solve this.
<br>

<br>
I tried to compile LUFA DFU bootloader (LUFA version LUFA-100513). tried in windows vista, with winavr-gcc.
<br>
my setup  
<br>
MCU = atmega32u2
<br>
F_CPU = 8000000  //i keep this the same
<br>

<br>
Have this error quoted below:
<br>

<br>
Compiling C: BootloaderDFU.c
<br>
avr-gcc -c -mmcu=atmega32u2 -I. -gdwarf-2 -DF_CPU=8000000UL -DF_CLOCK=8000000UL
<br>
-DBOARD=BOARD_ -D USB_DEVICE_ONLY -D DEVICE_STATE_AS_GPIOR=0 -D CONTROL_ONLY_DEV
<br>
ICE -D FIXED_CONTROL_ENDPOINT_SIZE=32 -D FIXED_NUM_CONFIGURATIONS=1 -D USE_RAM_D
<br>
ESCRIPTORS -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLE
<br>
D | USB_OPT_AUTO_PLL)" -D NO_INTERNAL_SERIAL -D NO_DEVICE_SELF_POWER -D NO_DEVIC
<br>
E_REMOTE_WAKEUP -DBOOT_START_ADDR=0x1E000UL -Os -funsigned-char -funsigned-bitfi
<br>
elds -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -fno-inline
<br>
-small-functions -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=./BootloaderDFU.l
<br>
st -I../../ -std=gnu99 -Wundef -MMD -MP -MF .dep/BootloaderDFU.o.d BootloaderDFU
<br>
.c -o BootloaderDFU.o
<br>
BootloaderDFU.c: In function 'SetupHardware':
<br>
BootloaderDFU.c:127: warning: implicit declaration of function 'clock_prescale_s
<br>
et'
<br>
BootloaderDFU.c:127: error: 'clock_div_1' undeclared (first use in this function
<br>
)
<br>
BootloaderDFU.c:127: error: (Each undeclared identifier is reported only once
<br>
BootloaderDFU.c:127: error: for each function it appears in.)
<br>
make: *** [BootloaderDFU.o] Error 1
<br>

<br>

<br>
I tried with atmega32u4 and it compile successfully, so any help about 
compiling on atmega32u2? any setting i miss to setup correctly.
<br>

<br>
thank you in advance anyone who encounter this error.</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705428"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705512"></a><strong>clawson</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705512#705512"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 10:40 AM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/10ksuperfreak.gif" alt="10k+ Postman" title="10k+ Postman" border="0"><br><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/7289833504cc54437b0919.gif" alt="" border="0"><br><br>
            Joined: Jul 18, 2005<br>
            Posts: 59132<br>
            Location: (using avr-gcc in) Finchingfield, Essex, England<br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">Check your WinAVR installation and ensure that avr/include/avr/power.h contains:
<br>

<div class="codetitle"><b>Code:</b></div><div class="codecontent">
typedef enum
<br>
{
<br>
&nbsp; &nbsp; clock_div_1 = 0,
<br>
&nbsp; &nbsp; clock_div_2 = 1,
<br>
&nbsp; &nbsp; clock_div_4 = 2,
<br>
&nbsp; &nbsp; clock_div_8 = 3,
<br>
&nbsp; &nbsp; clock_div_16 = 4,
<br>
&nbsp; &nbsp; clock_div_32 = 5,
<br>
&nbsp; &nbsp; clock_div_64 = 6,
<br>
&nbsp; &nbsp; clock_div_128 = 7,
<br>
&nbsp; &nbsp; clock_div_256 = 8,
<br>
#if defined(__AVR_ATmega128RFA1__)
<br>
&nbsp; &nbsp; clock_div_1_rc = 15,
<br>
#endif
<br>
} clock_div_t;
</div>

<br>
This is where the clock_prescale_set() and clock_div_1 definitions should be coming from.
<br>

<br>
Cliff</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"><br>_________________<br><a href="http://www.nongnu.org/avr-libc/user-manual/FAQ.html" target="_blank" class="postlink"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/faq.jpg" border="0"></a></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=95206"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=95206"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705512"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705638"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705638#705638"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 05:36 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">cliff, thank you for 
pointing to that part. this lines were there. but i did notice on other 
part of the code that there is no DEFINE ENTRY for atmega32u2...so I 
added it and <a in_rurl="http://i.trkjmp.com/click?v=VVM6MjQxMTg6MTM1Mjpub3c6NzBlNTE4NThkNmJhMGVmZmYyZTU0ZTc1MTMwNmJiMTE6ei0xMDMyLTYyODYyOnd3dy5hdnJmcmVha3MubmV0OjMwMjY3OjRkNTc0MzNhNjVmMDE2NDczYmVmODYxMGFjZjVlOWVk" href="#" style="text-decoration:underline" id="_GPLITA_1" title="Click to Continue &gt; by Text-Enhance">now</a> it can compile sucessfully.
<br>

<br>
one thing though that the compiled hex file,10kb, when loaded to 
programmer, like FLIP says "address out of range". and when loaded to 
Extreme Burner, can't be loaded "hex file is too large for the selected 
avr".
<br>

<br>
any idea how to reduce the compiled hex? or any workaround. anyway, I 
will be posting this as separate topic, since the first problem has been
 resolved. 
<br>

<br>

<br>
and if you can help facilitate to add this change (the atmega32u2 prescaler error) for the <a in_rurl="http://i.trkjmp.com/click?v=VVM6MzA5OTg6NDpuZXh0OjExMDUzZDEyYzVmYzljMDQxNjkxYjNmZDRkMzVjZWI4OnotMTAzMi02Mjg2Mjp3d3cuYXZyZnJlYWtzLm5ldDowOjA" href="#" style="text-decoration:underline" id="_GPLITA_0" title="Click to Continue &gt; by Text-Enhance">next</a> release of win-avr..as i don't know how to do it or contact the win-avr groups.
<br>

<br>
cliff, thanks for your help.
<br>
wendel</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705638"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705644"></a><strong>clawson</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705644#705644"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 06:01 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/10ksuperfreak.gif" alt="10k+ Postman" title="10k+ Postman" border="0"><br><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/7289833504cc54437b0919.gif" alt="" border="0"><br><br>
            Joined: Jul 18, 2005<br>
            Posts: 59132<br>
            Location: (using avr-gcc in) Finchingfield, Essex, England<br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">
<div class="quotetitle"><b>Quote:</b></div><div class="quotecontent">

<br>
one thing though that the compiled hex file,10kb, when loaded to programmer, like FLIP says "address out of range". 
<br>

</div>

<br>
That sounds AWFULLY familiar. I just read something almost identical here:
<br>

<br>
<!-- m --><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93845" target="_blank">http://www.avrfreaks.net/index.php?name ... mp;t=93845</a><!-- m -->
<br>

<br>
Oh, wait, that's you too - see what you did there - it's what we folks 
here call a cross post and the only possible outcome is to make folks 
cross when they answer one copy of the question only to find their reply
 was preempted somewhere else.
<br>

<br>
I'm going to lock one of these two threads to avoid further cross 
posting - your choice which one remains active (I'd suggest this one so 
Dean can reply)
<br>

<br>
Moderator.</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"><br>_________________<br><a href="http://www.nongnu.org/avr-libc/user-manual/FAQ.html" target="_blank" class="postlink"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/faq.jpg" border="0"></a></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=95206"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=95206"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705644"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705689"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705689#705689"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 09:26 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">sorry for the other post. ok, i'll keep this one. 
<br>

<br>
heres the result of the compile.
<br>
--------- Target Information ---------
<br>
AVR Model: atmega32u2
<br>
Board:
<br>
Clock: 8000000Hz CPU, 8000000Hz Master
<br>
--------------------------------------
<br>

<br>
Size after:
<br>
AVR Memory Usage
<br>
----------------
<br>
Device: atmega32u2
<br>

<br>
Program:    3336 bytes (10.2% Full)
<br>
(.text + .data + .bootloader)
<br>

<br>
Data:        127 bytes (12.4% Full)
<br>
(.data + .bss + .noinit)
<br>
--------------------------------------
<br>

<br>

<br>
I think Dean's Lufa compiled hex of 10kb, contains partly application flash space + actual lufa bootloader hex. 
<br>

<br>
And if I am correct, the actual compiled bootloader is only around 3.2kb.</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705689"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705691"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705691#705691"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 09:30 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">hi clawson, thanks for point out on the other thread about base address. i have recompiled it with address of 0x3800. 
<br>

<br>
now it can be loaded properly, i'll try to write it to the device and see if all goes well. thanks again for the help.</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705691"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705692"></a><strong>clawson</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705692#705692"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 09:34 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/10ksuperfreak.gif" alt="10k+ Postman" title="10k+ Postman" border="0"><br><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/7289833504cc54437b0919.gif" alt="" border="0"><br><br>
            Joined: Jul 18, 2005<br>
            Posts: 59132<br>
            Location: (using avr-gcc in) Finchingfield, Essex, England<br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">No, no, no and no.
<br>

<br>
This is GCC, it works in terms of BYTE addressing, not the WORD 
addressing that Atmel use in their datasheet, assembler and 
disassembler. If you set the BOOTSZ fuse bits to 00 for an mega32? then 
you are selecting WORD address 0x3800 which in GCC terms is BYTE address
 0x700. So you tell GCC to locate your bootloader at 0x7000 and you have
 4K bytes (2K words) between 0x7000 and 0x7FFF to fit your bootloader 
into.
<br>

<br>
Cliff
<br>

<br>
PS if you really tell GCC to locate the code at 0x3800 and it is 10K 
(0x2800) then it will span 0x3800..0x6000 which is certainly in the 
"middle" of a mega32 but it's no where near the BLS address set by 
BOOTSZ and BOOTRST
<br>

<br>
I'll say again - you have a maximum of 4K bytes for a bootloader in a mega32? you CANNOT use a 10K bootloader.</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"><br>_________________<br><a href="http://www.nongnu.org/avr-libc/user-manual/FAQ.html" target="_blank" class="postlink"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/faq.jpg" border="0"></a></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=95206"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=95206"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705692"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705720"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705720#705720"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 11:17 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">Rechecking in atmel datasheet, your correct, that booloader size is 4kb, based on 2048 words.
<br>

<br>
All fuses and lock bits are the default when I got this avr. In the 
datasheet, BOOTSZ1 and BOOTSZ0 defaults to 0. So i have not changed it, 
that is why I only guess that Lufa's BOOT_START will be 0x3800.
<br>

<br>
I am a newbie and I am tying to figure out which is the correct lufa 
bootloader compile settings for this avr. I am confused with the 
datasheet saying bootloader will reside on "0x3800 - 0x3FFF".
<br>
But this address range I think is only about 2Kb size? 
<br>

<br>
So if I may ask, what could be the value to set in compiling LUFA bootloader Boot Start?</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705720"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705723"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705723#705723"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 11:21 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">ok, i got it, did not realized its in your answer already. ok I'll set it to 0x7000.</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705723"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705726"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705726#705726"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 11:44 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">Cliff, compiled OK, loaded to Xtreme Burner, Ok. But seems Extreme Burner can't correctly read/write. I am using USBASP. 
<br>

<br>
In Extreme Burner, it says "incorrect chip found". And even tried 
avrdude and seems can't detect my avr, says signature is "0x0103FF". 
<br>

<br>
heres the output of avrdude
<br>
---------------------------------------
<br>
avrdude: Device signature = 0x0103ff
<br>
avrdude: Expected signature for ATMEGA32 is 1E 95 02
<br>
         Double check chip, or use -F to override this check.
<br>
---------------------------------------</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705726"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705728"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705728#705728"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 21, 2010 - 11:55 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">To add, though atmega32 was 
not correctly detected by extreme burner, but upon continue loading the 
flash/eprom/fuse bits...it display some data. 
<br>

<br>
but I am not sure if this are the correct data since in the first place my avr was not correctly identified.
<br>

<br>
In extreme burner --flash memory written successfully- but at verifying, the error occurs ..mismatch location 0x000000.
<br>

<br>
anyone who encounter this problem?</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705728"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705746"></a><strong>abcminiuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705746#705746"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 22, 2010 - 01:32 AM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rankm.gif" alt="Moderator" title="Moderator" border="0"><br><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/19921425774b0bdf31e49ae.png" alt="" border="0"><br><br>
            Joined: Jan 23, 2004<br>
            Posts: 9581<br>
            Location: Trondheim, Norway<br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">Where on earth are you getting the 10KB size from? Your own compiler output indicates that it is only 3.3KB:
<br>

<br>

<div class="quotetitle"><b>Quote:</b></div><div class="quotecontent">

<br>
Size after:
<br>
AVR Memory Usage
<br>
----------------
<br>
Device: atmega32u2
<br>

<br>
Program: 3336 bytes (10.2% Full)
<br>
(.text + .data + .bootloader)
<br>

<br>
Data: 127 bytes (12.4% Full)
<br>
(.data + .bss + .noinit)
<br>
-------------------------------------- 
<br>

</div>

<br>

<br>
Which is correct for the 32U2. It sounds like you are not using the 
latest WinAVR distribution, which includes the avr-libc patches needed 
to fix the clock division.
<br>

<br>
To load the HEX file, you need to set the following options in the makefile:
<br>

<br>
MCU = atmega32u2
<br>
F_CPU = {Your CPU Input Clock Frequency}
<br>
BOOT_START = 0x7000
<br>

<br>
Recompile and load with your chosen ISP software. Your fuses will need to be set for a 4KB bootloader section.
<br>

<br>
- Dean <img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_twisted.gif" alt="Twisted Evil" border="0"></td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"><br>_________________<br><span style="font-size: 16px; line-height: normal"><span style="font-weight: bold"><span style="color: red">Atmel Studio 6 Service Pack 2 (Build 1996) has been released, grab it <a href="http://www.atmel.com/tools/atmelstudio.aspx" target="_blank" class="postlink">here</a>.</span></span></span> <a href="http://asf.atmel.com/bugzilla/" target="_blank" class="postlink">Report AS6/ASF bugs here.</a></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=55749"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=55749"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a> <a href="mailto:dean@fourwalledcubicle.com"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_email.gif" alt="Send e-mail" title="Send e-mail" width="59" border="0" height="18"></a> <a href="http://www.fourwalledcubicle.com/" target="_userwww"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_www.gif" alt="Visit poster's website" title="Visit poster's website" width="59" border="0" height="18"></a>&nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705746"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705759"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705759#705759"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 22, 2010 - 02:40 AM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">Dean, the 10kb size is the 
displayed file size in windows vista, so this maybe windows issue.(file 
size descrepancy, windows with hex file).
<br>

<br>
anyway, I tried to use USBASP with Extreme Burner as the 
software/hardware to write the hex file. but as I stated, have this 
error.."chip not found".
<br>

<br>
so I'll have to resolve first this "chip not found" error until, then I can write the precompiled hex file. 
<br>

<br>
this avr i am trying to program is a standalone, in breadboard, with 32 tqfp to dip pcb adapter. so I ony make 6 connection.
<br>

<br>
port 17- for MISO
<br>
port 15 for SCK
<br>
port 24 for RST
<br>
port 4 for vcc
<br>
port 16 for MOSI
<br>
port 3 for ground. 
<br>
xtal 1 and xtal2 has 8Mhz oscillator ( i use the series type). one of 
oscillator is on xtal1, the other on xtal2.-&gt; is this correct? or I 
should use the oscillator,parallel based(with caps)? 
<br>

<br>
i get the vcc power from myusbasp, 3.6 volt out. will this be ok or I need to add some other components?</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705759"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705760"></a><strong>abcminiuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705760#705760"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 22, 2010 - 02:44 AM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rankm.gif" alt="Moderator" title="Moderator" border="0"><br><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/19921425774b0bdf31e49ae.png" alt="" border="0"><br><br>
            Joined: Jan 23, 2004<br>
            Posts: 9581<br>
            Location: Trondheim, Norway<br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">
<div class="quotetitle"><b>Quote:</b></div><div class="quotecontent">

<br>
Dean, the 10kb size is the displayed file size in windows vista, so this
 maybe windows issue.(file size descrepancy, windows with hex file). 
<br>

</div>

<br>

<br>
Ah. Actual .HEX file size != actual program size. The .HEX file has the 
data represented in ASCII and not binary bits, includes addressing 
information and may or may not include blank sections. Always use the 
output of avr-size to determine the true size of the data it contains.
<br>

<br>

<br>

<div class="quotetitle"><b>Quote:</b></div><div class="quotecontent">

<br>
xtal 1 and xtal2 has 8Mhz oscillator ( i use the series type). one of 
oscillator is on xtal1, the other on xtal2.-&gt; is this correct? or I 
should use the oscillator,parallel based(with caps)? 
<br>

</div>

<br>

<br>
XTAL1 and XTAL2 of the USB AVR needs to be connected to a parallel 
resonant crystal, with appropriate loading capacitors (see datasheet). 
If you have an alternative clock source, you will still need a crystal 
to be able to change the AVR's clock source type fuses.
<br>

<br>
- Dean <img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_twisted.gif" alt="Twisted Evil" border="0"></td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"><br>_________________<br><span style="font-size: 16px; line-height: normal"><span style="font-weight: bold"><span style="color: red">Atmel Studio 6 Service Pack 2 (Build 1996) has been released, grab it <a href="http://www.atmel.com/tools/atmelstudio.aspx" target="_blank" class="postlink">here</a>.</span></span></span> <a href="http://asf.atmel.com/bugzilla/" target="_blank" class="postlink">Report AS6/ASF bugs here.</a></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=55749"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=55749"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a> <a href="mailto:dean@fourwalledcubicle.com"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_email.gif" alt="Send e-mail" title="Send e-mail" width="59" border="0" height="18"></a> <a href="http://www.fourwalledcubicle.com/" target="_userwww"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_www.gif" alt="Visit poster's website" title="Visit poster's website" width="59" border="0" height="18"></a>&nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705760"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="705764"></a><strong>usbuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=705764#705764"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> May 22, 2010 - 03:11 AM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank1.gif" alt="Rookie" title="Rookie" border="0"><br><br><br>
            Joined: May 14, 2010<br>
            Posts: 49<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">ok. will change the oscillator circuit. and keep you posted in few days. this will be a great help to all newbies like me.
<br>

<br>
thanks to you, cliff and the rest of avr forum members
<br>
/wendel</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=239704"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=705764"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="775040"></a><strong>iloromero</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=775040#775040"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> Dec 12, 2010 - 03:40 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank0.gif" alt="Newbie" title="Newbie" border="0"><br><br><br>
            Joined: Dec 12, 2010<br>
            Posts: 1<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">To wrap up, these are the steps that worked for me to succesfully program my atmega32u2 with the LUFA DFU bootloader.
<br>

<br>
I am using:
<br>
Windows 7
<br>
LUFA101122
<br>
WinAVR-20100110
<br>
arduino-0021 (for the ArduinoISP programmer)
<br>

<br>
The power.h file in the WinAVR-20100110 installation is missing the 
definition of the atmega32u2 chip. Mine is located in 
C:\WinAVR-20100110\avr\include\avr.
<br>
Edit the file power.h and add right before the last defined item (around line 1329) the following line
<br>

<br>
|| defined(__AVR_ATmega32U2__) \ 
<br>

<br>

<br>
Next, if you plan to compile your chip using the definitons of the 
at90usb162 that is pin compatible you need to trick the system to make 
it believe that the AT90USB162 has 32K of memory. This is simply 
accomplished by modifying the file avrdude.conf in 
C:\WinAVR-20100110\bin around line 12903 under the definitions of 
AT90USB162
<br>
from this:
<br>
memory "flash"
<br>
        paged           = yes;
<br>
        size            = 16384;
<br>
        page_size       = 128;
<br>
        num_pages       = 128;
<br>

<br>
into this:
<br>
    memory "flash"
<br>
        paged           = yes;
<br>
        size            = 32768;
<br>
        page_size       = 128;
<br>
        num_pages       = 256;
<br>

<br>
Of course this will affect your ability to program the actual AT90USB162
 chip so you want to keep a backup copy of your original avrdude.conf 
file to restore the original as needed.
<br>

<br>
Now back to your LUFA DFU bootloader, in the makefile make sure you have
 the following settings as noted above in this tread and assuming you 
are using an external crystal at 16Mhz:
<br>

<br>
MCU = atmega32u2
<br>
F_CPU = 16000000
<br>
BOOT_START = 0x7000
<br>

<br>
Also you need to configure the right settings for your programmer. In my
 case I used an arduino as AVRISP on port com5 so I made the following 
changes:
<br>

<br>
AVRDUDE_PROGRAMMER = avrisp
<br>
AVRDUDE_PORT = com5
<br>
AVRDUDE_FLAGS = -p usb162 -F -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) -b19200
<br>

<br>
then you can launch the command 'make program' and in my case everything
 worked as a charm! But your fuses need to be appropriately configured 
in the target device for this to work. If you need to configure also 
your fuses you can just compile the dfu bootloader hex file with 'make 
all' and then use your preferred programmer to install the generated hex
 file and set the fuses, for example in my case I used:
<br>

<br>
avrdude -c avrisp -P com5 -pusb162 -b19200 -F -U 
flash:w:Arduino-usbdfu.hex -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U 
efuse:w:0xF4:m -U lock:w:0x0F:m
<br>

<br>
I am sharing these instructions as a wrap up of all the treads I have 
found on the topic because it took me a few hours to figure it out. 
These instructions worked for me and I hope they work for you. Please 
understand you can use these instructions at your own risk, a lot of 
what you need to do really depends on your specific setup.</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=254784"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=254784"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=775040"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="780003"></a><strong>denim</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=780003#780003"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> Dec 28, 2010 - 10:47 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank0.gif" alt="Newbie" title="Newbie" border="0"><br><br><br>
            Joined: Feb 17, 2008<br>
            Posts: 17<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">I used your hex file and get
 exactly the same result as when I compile lufa dfu (LUFA101122) by my 
self with AVR studio: it does not work, windows 7 64bit do not 
enumarate...
<br>

<br>
It's listed under USB controller as "Unknown Device"
<br>

<br>
fuse settings: 
<br>
lfuse: 0xFF
<br>
hfuse: 0xD9
<br>
efuse: 0xF4
<br>

<br>

<br>
my makefile:
<br>
MCU = atmega32u2
<br>
BOARD = TEENSY
<br>
F_CPU = 16000000
<br>
BOOT_START = 0x7000
<br>

<br>

<br>
any idea?</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=165081"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=165081"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=780003"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="780116"></a><strong>abcminiuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=780116#780116"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> Dec 29, 2010 - 08:22 AM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rankm.gif" alt="Moderator" title="Moderator" border="0"><br><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/19921425774b0bdf31e49ae.png" alt="" border="0"><br><br>
            Joined: Jan 23, 2004<br>
            Posts: 9581<br>
            Location: Trondheim, Norway<br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">You need to replace the main DFUBootloader.c file with this updated version:
<br>

<br>
<!-- m --><a href="http://code.google.com/p/lufa-lib/source/browse/trunk/Bootloaders/DFU/BootloaderDFU.c?r=1619" target="_blank">http://code.google.com/p/lufa-lib/sourc ... U.c?r=1619</a><!-- m -->
<br>

<br>
I accidentally forgot to filter the device requests properly, causing 
the bootloader to interpret some of the standard requests as DFU 
requests.
<br>

<br>
- Dean <img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_twisted.gif" alt="Twisted Evil" border="0"></td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"><br>_________________<br><span style="font-size: 16px; line-height: normal"><span style="font-weight: bold"><span style="color: red">Atmel Studio 6 Service Pack 2 (Build 1996) has been released, grab it <a href="http://www.atmel.com/tools/atmelstudio.aspx" target="_blank" class="postlink">here</a>.</span></span></span> <a href="http://asf.atmel.com/bugzilla/" target="_blank" class="postlink">Report AS6/ASF bugs here.</a></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=55749"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=55749"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a> <a href="mailto:dean@fourwalledcubicle.com"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_email.gif" alt="Send e-mail" title="Send e-mail" width="59" border="0" height="18"></a> <a href="http://www.fourwalledcubicle.com/" target="_userwww"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_www.gif" alt="Visit poster's website" title="Visit poster's website" width="59" border="0" height="18"></a>&nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=780116"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="780139"></a><strong>denim</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=780139#780139"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> Dec 29, 2010 - 09:57 AM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rank0.gif" alt="Newbie" title="Newbie" border="0"><br><br><br>
            Joined: Feb 17, 2008<br>
            Posts: 17<br>
            <br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row1">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">Dean, Thanks <img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_smile.gif" alt="Smile" border="0"> now it works.
<br>

<br>
Where can I get some basic beginners information about the DFU?
<br>
How to exit / enter the DFU mode etc
<br>

<br>
Regards
<br>
D</td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row1" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=165081"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=165081"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a>  &nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=780139"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
    <tr>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
          <td valign="middle">
            <span class="name"><a name="780297"></a><strong>abcminiuser</strong></span>          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tbody><tr>
					<td class="postdetails" width="100%">
            <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=780297#780297"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_minipost.gif" alt="Post" title="Post" width="12" border="0" height="9"></a><b>Posted:</b> Dec 29, 2010 - 07:04 PM          </td>
				</tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" rowspan="2" valign="top">
      <table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td>
            <span class="postdetails"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/rankm.gif" alt="Moderator" title="Moderator" border="0"><br><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/19921425774b0bdf31e49ae.png" alt="" border="0"><br><br>
            Joined: Jan 23, 2004<br>
            Posts: 9581<br>
            Location: Trondheim, Norway<br>
            <br>
            </span>
            <!-- <img src="./modules/PNphpBB2/templates/PNTheme/images/spacer.gif" alt="" width="150" height="1" /> -->
          </td>
        </tr>
      </tbody></table>
    </td>
    <td class="row2">
      <table width="100%" cellpadding="5" cellspacing="0">
        <tbody><tr>
          <td class="postbody" valign="top">The best way is to search 
for FLIP user guides online - there are a LOT around now of varying 
quality, thanks to the recent PS3 jailbreak hack that uses the USB AVRs.
 The manual that comes with FLIP is shockingly out of date, so don't 
even bother looking there.
<br>

<br>
From the device side, by default on the USB AVRs you can re-enter the 
bootloader (DFU or otherwise) by holding the /HWB pin of the 
microcontroller low, then pulsing /RESET low.
<br>

<br>
- Dean <img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_twisted.gif" alt="Twisted Evil" border="0"></td>
        </tr>
        <tr>
          <td class="genmed" height="40" valign="bottom">
          <!-- Begin PNphpBB2 Attachment Mod -->
                      <!-- End PNphpBB2 Attachment Mod -->
            <span class="postbody"><br>_________________<br><span style="font-size: 16px; line-height: normal"><span style="font-weight: bold"><span style="color: red">Atmel Studio 6 Service Pack 2 (Build 1996) has been released, grab it <a href="http://www.atmel.com/tools/atmelstudio.aspx" target="_blank" class="postlink">here</a>.</span></span></span> <a href="http://asf.atmel.com/bugzilla/" target="_blank" class="postlink">Report AS6/ASF bugs here.</a></span>
            <span class="gensmall"></span>
          </td>
        </tr><tr>
        </tr><tr>
	        <td class="gensmall" align="right">  &nbsp;</td>
	      </tr>
      </tbody></table>
    </td>
  </tr>
  <tr>
    <td class="row2" nowrap="nowrap" valign="bottom">
      <div class="gensmall" style="float:left">&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=profile&amp;mode=viewprofile&amp;u=55749"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_profile.gif" alt="View user's profile" title="View user's profile" width="59" border="0" height="18"></a> <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;mode=post&amp;u=55749"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_pm.gif" alt="Send private message" title="Send private message" width="59" border="0" height="18"></a> <a href="mailto:dean@fourwalledcubicle.com"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_email.gif" alt="Send e-mail" title="Send e-mail" width="59" border="0" height="18"></a> <a href="http://www.fourwalledcubicle.com/" target="_userwww"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_www.gif" alt="Visit poster's website" title="Visit poster's website" width="59" border="0" height="18"></a>&nbsp;</div>
      <div class="gensmall" style="float:right"><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=quote&amp;p=780297"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_quote.gif" alt="Reply with quote" title="Reply with quote" width="59" border="0" height="18"></a>  <a href="#top"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/icon_up.gif" alt="Back to top" title="Back to top" width="19" border="0" height="18"></a></div>
    </td>
  </tr>
      <tr>
    <td class="cat" colspan="2" height="28">
      <table align="center" border="0" cellpadding="2" cellspacing="0">
        <tbody><tr>
          <td>
            <form method="post" action="index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;start=0">
            <table align="center" border="0" cellpadding="0" cellspacing="0">
	            <tbody><tr align="center"> 
		            <td nowrap="nowrap">
                  Display posts from previous:&nbsp;&nbsp;<select name="postdays"><option value="0" selected="selected">All Posts</option><option value="1">1 Day</option><option value="7">7 Days</option><option value="14">2 Weeks</option><option value="30">1 Month</option><option value="90">3 Months</option><option value="180">6 Months</option><option value="364">1 Year</option></select>&nbsp;<select name="postorder"><option value="asc" selected="selected">Oldest First</option><option value="desc">Newest First</option></select>&nbsp;&nbsp;
                  <input value="Go" class="catbutton" name="submit" type="submit">
                </td>
              </tr>
            </tbody></table>
            </form>
          </td>
        </tr>
        <tr align="center">
          <td><form method="post" name="jumpbox" action="index.php?name=PNphpBB2&amp;file=viewforum" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<table align="center" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr align="center"> 
		<td nowrap="nowrap">
      <span class="gensmall">
        Jump to:&nbsp;<select name="f" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"><option value="-1">Select a forum</option><option value="-1">&nbsp;</option><option value="-1">Forum index</option><option value="-1">|--[AVR (8-bit) Technical Forums]</option><option value="3">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR forum</option><option value="22">|&nbsp;&nbsp;&nbsp;|--&nbsp;XMEGA forum</option><option value="24">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR Wireless forum</option><option value="2" selected="selected">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR GCC forum</option><option value="23">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR Studio 5 and Atmel Studio 6 forum</option><option value="7">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR studio 4 forum</option><option value="5">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVRfreaks Academy forum</option><option value="11">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR Tutorials</option><option value="-1">|--[AVR Software Framework]</option><option value="21">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR Software Framework</option><option value="-1">|--[AVR32 (32-bit) Technical Forums]</option><option value="12">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR32 Linux Forum</option><option value="13">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR32 General (standalone)</option><option value="14">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR32 Software Tools</option><option value="15">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVR32 Hardware</option><option value="-1">|--[General Electronics Technical Forums]</option><option value="16">|&nbsp;&nbsp;&nbsp;|--&nbsp;General Electronics</option><option value="20">|&nbsp;&nbsp;&nbsp;|--&nbsp;Atmel Security Products</option><option value="-1">|--[Non-technical forums]</option><option value="4">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVRfreaks.net Housekeeping</option><option value="-1">|--[Non-topical forums]</option><option value="9">|&nbsp;&nbsp;&nbsp;|--&nbsp;Off-topic forum</option><option value="8">|&nbsp;&nbsp;&nbsp;|--&nbsp;AVRfreaks Trading Post</option></select><input name="sid" value="26cbeb32c0b1ff7b9b390e97750364d6" type="hidden"><input name="op" value="modload" type="hidden"><input name="name" value="PNphpBB2" type="hidden"><input name="file" value="viewforum" type="hidden"><input name="sid" value="" type="hidden">&nbsp;
        <input value="Go" class="liteoption" type="submit">
      </span>
    </td>
	</tr>
</tbody></table>
</form>

</td>
        </tr> 
      </tbody></table>
    </td>
  </tr>
</tbody></table>

<table width="100%" border="0" cellpadding="2" cellspacing="2">
  <tbody><tr>
    <td colspan="3" align="right" valign="top">
      <div class="gensmall">All times are GMT + 1 Hour</div>
    </td>
  </tr>
  <tr>
    <td align="left" nowrap="nowrap">
      <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=newtopic&amp;f=2"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/post.gif" alt="Post new topic" title="Post new topic" width="82" border="0" height="25"></a>&nbsp;&nbsp;&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=posting&amp;mode=reply&amp;t=93830"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/reply.gif" alt="Reply to topic" title="Reply to topic" width="82" border="0" height="25"></a>
    </td>
    <td colspan="2" nowrap="nowrap"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;view=previous"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/topic_previous.gif" alt="View previous topic" title="View previous topic" width="15" border="0" height="25"></a></td> 
<td></td>
<td><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=printview&amp;t=93830&amp;start=0" target="_blank"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/topic_print.gif" alt="Printable version" title="Printable version" width="24" border="0" height="25"></a></td>
<td></td>
<td><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=privmsg&amp;folder=inbox"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/pm_no_new.gif" alt="Log in to check your private messages" title="Log in to check your private messages" width="24" border="0" height="25"></a></td>
<td><a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;view=next"><img src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/topic_next.gif" alt="View next topic" title="View next topic" width="14" border="0" height="25"></a></td>
</tr>
</tbody></table>
</td>
  </tr>
  <tr>
    <td class="nav" valign="top"><b>1</b>, <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;postdays=0&amp;postorder=asc&amp;start=20">2</a>&nbsp;&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;postdays=0&amp;postorder=asc&amp;start=20">Next</a>&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;start=all&amp;postdays=0&amp;postorder=asc" style="text-decoration:none;">All</a></td>
    <td rowspan="2" align="right" valign="top"></td>
  </tr>
  <tr>
    <td class="nav" width="100%">
      &nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=index" class="nav">AVR Freaks Forum Index</a>&nbsp;»&nbsp;<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=index&amp;c=2" class="nav">AVR (8-bit) Technical Forums</a>&nbsp;»&nbsp;      <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewforum&amp;f=2" class="nav">AVR GCC forum</a>
    </td>
  </tr>
</tbody></table>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
  <tbody><tr>
    <td class="gensmall" align="right" valign="top">
      <!-- <strong></strong><br />
<br />
<a href="index.php?name=PNphpBB2&amp;file=printview&amp;t=93830&amp;start=0" target="_blank" title="Printable version">Printable version</a><br />
<a href="index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;view=previous">View previous topic</a><br />
<a href="index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=93830&amp;view=next">View next topic</a><br />
-->
      <!-- You <b>cannot</b> post new topics in this forum<br />You <b>cannot</b> reply to topics in this forum<br />You <b>cannot</b> edit your posts in this forum<br />You <b>cannot</b> delete your posts in this forum<br />You <b>cannot</b> vote in polls in this forum<br />You <b>cannot</b> attach files in this forum<br />You <b>cannot</b> download files in this forum<br /> -->
    </td>
  </tr>
</tbody></table>

<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tbody><tr>
<td class="gensmall" style="text-align:center" align="center">Powered by <a style="text-decoration:none;" href="http://www.pnphpbb.com/" target="_blank"><b><i>PN</i></b><b>phpBB2</b></a>&nbsp;© 2003-2006&nbsp;The PNphpBB Group<br><a href="http://www.avrfreaks.net/modules/PNphpBB2/docs/copyrite.html" onclick="window.open('./modules/PNphpBB2/docs/copyrite.html', '_pnphpbb2_credits', 'HEIGHT=250,WIDTH=450,scrollbars=yes');return false;">Credits</a> </td>
</tr>
</tbody></table>

<a name="bot" id="bot"></a>
					</td>
				</tr>
			</tbody></table>
		</td>
	</tr>
</tbody></table>

</div>
</div>            </td>
          </tr>
        </tbody></table>
      </td>
    </tr>
  </tbody></table>
  </td><td id="fc_bg_right">&nbsp;</td>
  </tr>
</tbody></table>

<div id="__tbSetup"></div><script id="__changoScript" type="text/javascript">var __chd__ = {'aid':11079,'chaid':'www_objectify_ca'};(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = true;c.src = ( 'https:' == document.location.protocol ? 'https://z': 'http://p') + '.chango.com/static/c.js'; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(c, s);})();</script><script data-sifi-parsed="true" src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/dpx.js" id="__simpliScript" type="text/javascript"></script><script src="View%20topic%20-%20Compile%20LUFA%20Bootloader%20atmega32u2%20error%20%20%20AVR%20Freaks_files/p"></script></body></html>